//function testUpload(){
//	$("#upload-btn").click(function(){
//		var senddata={"file":$("#file").val(),"fileName":$("#fileName").val()};
//		$.ajax({
//			url:"http://localhost:8080/ConverstionTool/csv/File",
//			type:"post",
//			data:senddata,
//		    contentType: "application/json; charset=utf-8",
//			dataType:"text",
//			success:function(data){
//				debugger
//				$("#checkUpload").append( "<div>"+data+"</div>" );
//			}
//		});
//
//	});
//}

function addfile(){
	$("#add-btn").click(function(){
		$("#additionalFlie").append( "<label for=\"file\"> " +
				"Select a file to upload:</label>" +
				" <input type=\"file\" " +
				"name=\"file\" " +
				"id=\"file\"  " +
				"accept=\"csv\"" +
				"/>");
		$("#additionalFlie").append("<label for=\"fileName\"> " +
				"Input a file name:</label> " +
				"<input type=\"input\"" +
				" name=\"fileName\" " +
						"id=\"fileName\"" +
						"placeholder=\"give a file name\"" +
								"class=\"form-control\" />");
		
	});
}

$(function(){
	addfile();
})


function check(){
	$("#upload-btn").click(function(){
		$("#checkUpload").append( "<div>12345</div>" );
	});
}